import * as mobx from "mobx";

class Store {
    phone = 13966669999;
    token = "";

    constructor() {
        mobx.makeAutoObservable(this);
    }

    // 修改电话号码
    updatePhone = (newPhone) => {
        this.phone = newPhone;
    };

    // 修改 token
    updateToken = (newToken) => {
        this.token = newToken;
    };
}

export default new Store();



